package org.jash.shop2112.mvvm

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.jash.shop2112.utils.APIService
import org.jash.shop2112.utils.retrofit

open class BaseViewModel:ViewModel() {
    val service by lazy { retrofit.create(APIService::class.java) }
    val errorLiveData by lazy { MutableLiveData<Throwable>() }
}